/* 重置所有元素的盒模型 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 文档基础样式 */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: "PingFang", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  line-height: 1.5;
  color: #000;
  background-color: #fcfcfc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除列表样式 */
ul,
ol {
  list-style: none;
}

/* 移除链接默认样式 */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  text-decoration: none;
}

/* 图片处理 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}

/* 表单元素样式重置 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* 移除textarea的默认垂直滚动条 */
textarea {
  overflow: auto;
  resize: vertical;
}

/* 表格样式重置 */
table {
  border-collapse: collapse;
}

/* 移除标题元素的默认边距 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.2;
}

/* 移除段落默认边距 */
p {
  margin-top: 0;
  margin-bottom: 0;
}

/* 移除引用默认样式 */
blockquote {
  margin: 0;
}

/* 移除 hr 默认样式 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid #e9e9e9;
  margin: 20px 0;
}

/* 移除 fieldset 默认样式 */
fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

/* 修复 Firefox 中 placeholder 的不透明度 */
::-webkit-input-placeholder {
  color: #999;
  opacity: 1;
}
::-moz-placeholder {
  color: #999;
  opacity: 1;
}
:-ms-input-placeholder {
  color: #999;
  opacity: 1;
}
::-ms-input-placeholder {
  color: #999;
  opacity: 1;
}
::placeholder {
  color: #999;
  opacity: 1;
}
